package com.bank.basic;

import com.bank.basic.mapper.LoanMapper;
import com.bank.model.entity.Loan;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2022/12/3 22:33
 */

@SpringBootTest
public class Mysql {
    @Autowired
    LoanMapper loanMapper;
    @Test
    public void connect(){
        System.out.println("-----------------connect-----------------");
    }
    @Test
    public void findAll() {
        List<Loan> loans = loanMapper.selectList(null);
        System.out.println(loans);
    }
}
